package org.jet.emall.prod.po;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户登录日志表
 * </p>
 *
 * @author xiaozai
 * @since 2020-04-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_customer_login_log")
@ApiModel(value="CustomerLoginLog对象", description="用户登录日志表")
public class CustomerLoginLog implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "登录日志ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "会员ID")
    private Long customerId;

    @ApiModelProperty(value = "会员登录时间")
    private LocalDateTime loginTime;

    @ApiModelProperty(value = "登录IP")
    private String loginIp;

    @ApiModelProperty(value = "登录类型: 0-未成功,1-成功")
    private Byte loginType;

    @TableLogic
    @ApiModelProperty(value = "逻辑删除: 1-已删除, 0-未删除")
    private Byte deleted;


}
